Class: TreasureData::IpLimit
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#mask ⇒ Object
readonly
Returns the value of attribute mask.
-
#org ⇒ Object
readonly
Returns the value of attribute org.
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize(client, org, address, mask) ⇒ IpLimit
constructor
A new instance of IpLimit.
- #ip_range ⇒ Object
Constructor Details
#initialize(client, org, address, mask) ⇒ IpLimit
Returns a new instance of IpLimit.
505 506 507 508 509 510 |
# File 'lib/td/client/model.rb', line 505 def initialize(client, org, address, mask) super(client) @org = org @address = address @mask = mask end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
516 517 518 |
# File 'lib/td/client/model.rb', line 516 def address @address end |
#mask ⇒ Object (readonly)
Returns the value of attribute mask.
516 517 518 |
# File 'lib/td/client/model.rb', line 516 def mask @mask end |
#org ⇒ Object (readonly)
Returns the value of attribute org.
516 517 518 |
# File 'lib/td/client/model.rb', line 516 def org @org end |
Instance Method Details
#ip_range ⇒ Object
512 513 514 |
# File 'lib/td/client/model.rb', line 512 def ip_range "#{address}/#{mask}" end |