Class: Coinigy::Preferences

Inherits:
Model
  • Object
show all
Defined in:
lib/coinigy/preferences.rb

Overview

Represents the Preferences of a user subscription to Coinigy

Instance Attribute Summary collapse

Attributes inherited from Model

#errors

Instance Method Summary collapse

Methods inherited from Model

#errors?, #initialize, #inspect, #save

Constructor Details

This class inherits a constructor from Coinigy::Model

Instance Attribute Details

#alert_emailObject

Returns the value of attribute alert_email



4
5
6
# File 'lib/coinigy/preferences.rb', line 4

def alert_email
  @alert_email
end

#alert_smsObject

Returns the value of attribute alert_sms



4
5
6
# File 'lib/coinigy/preferences.rb', line 4

def alert_sms
  @alert_sms
end

#balance_emailObject

Returns the value of attribute balance_email



4
5
6
# File 'lib/coinigy/preferences.rb', line 4

def balance_email
  @balance_email
end

#subscriptionObject

Other objects



9
10
11
# File 'lib/coinigy/preferences.rb', line 9

def subscription
  @subscription
end

#trade_emailObject

Returns the value of attribute trade_email



4
5
6
# File 'lib/coinigy/preferences.rb', line 4

def trade_email
  @trade_email
end

#trade_smsObject

Returns the value of attribute trade_sms



4
5
6
# File 'lib/coinigy/preferences.rb', line 4

def trade_sms
  @trade_sms
end

Instance Method Details

#attributesObject



11
12
13
14
15
# File 'lib/coinigy/preferences.rb', line 11

def attributes
  { "alert_email" => alert_email, "alert_sms" => alert_sms,
    "trade_email" => trade_email, "trade_sms" => trade_sms,
    "balance_email" => balance_email }
end